$OpenBSD: patch-common_mapi_ptr_mapi_memory_ptr_h,v 1.4 2015/04/05 22:25:08 robert Exp $

On OpenBSD, _U is defined in ctype.h.

--- common/mapi_ptr/mapi_memory_ptr.h.orig	Thu Mar  5 16:54:04 2015
+++ common/mapi_ptr/mapi_memory_ptr.h	Fri Apr  3 23:11:10 2015
@@ -160,11 +160,11 @@ class mapi_memory_ptr (public)
 		return proxy(&m_lpMemory);
 	}
 
-	template <typename _U>
-	_U as() { return (_U)m_lpMemory; }
+	template <typename _ZCPU>
+	_ZCPU as() { return (_ZCPU)m_lpMemory; }
 
-	template <typename _U>
-	const _U as() const { return (_U)m_lpMemory; }
+	template <typename _ZCPU>
+	const _ZCPU as() const { return (_ZCPU)m_lpMemory; }
 
 	operator void**() {
 		if (m_lpMemory) {
